package com.atguigu.gulimall.auth.feign;

import com.atguigu.common.utils.R;
import com.atguigu.common.vo.SocialUser;
import com.atguigu.common.vo.UserLoginVo;
import com.atguigu.common.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @description:
 * @author: BlueSky
 * @create: 2021-09-22 15:14
 **/
@FeignClient("gulimall-member")
public interface MemberFeignService {

	@PostMapping("/member/member/regist")
	R regist(@RequestBody UserRegistVo vo);

	@PostMapping("/member/member/login")
	R login(@RequestBody UserLoginVo vo);

	@PostMapping("/member/member/oauth2/login")
	R oauthlogin(@RequestBody SocialUser socialUser) throws Exception;
}
